#ifndef CONFIG_H
#define CONFIG_H

#include <string>

namespace config {

class Config
{
public:
	~Config();
	static Config* getInstance();

	static char* Config::getString(const char *key, char* deflt, bool required=false);
	static std::string Config::getStdString(const char *key, std::string deflt, bool required=false);
	static int Config::getInt(const char *key, int deflt, bool required=false);
	static float Config::getFloat(const char *key, float deflt, bool required=false);
	static double Config::getDouble(const char *key, double deflt, bool required=false);

protected:
	Config();

private:
	static Config* _instance;
};

}

#endif /* CONFIG_H */
